    <!-- Right Side/Main Content Start -->
    <div id="rightside">
        
        <!-- Alternative Content Box Start -->
         <div class="contentcontainer">
			<!--
            <div class="headings altheading">
                <h2>Alternative coloured heading</h2>
            </div>
			-->
            <form action="index.php/goods/search" method="post">
            <div class="contentbox">
				<div class="extrabottom">
					<div style="display:inline;">
                    	<select name="select">
                        	<option value="GoodsNO">编号</option>
							<option value="GoodsName">商品名称</option>
							<!--<option value="ProviderName">供应商</option>
							<option value="ProviderGoodsNO">供应商货号</option>-->
                        </select>
						<input type="text" id="smallbox" class="inputbox smallbox" name="value" />
                        <input type="submit" value=" 搜 索 " class="btnalt" />
					</div>
					<div style="display:inline; float:right; margin-top:2px;">
						<input type="button" value=" 正 常 " class="btn" />
						<input type="button" value=" 缺 货 " class="btn" />
						<input type="button" value="有警戒的" class="btn" />
						<input type="button" value="低于警戒" class="btn" />
						<input type="button" value="有库存的" class="btn" />
						<input type="button" value="显示全部" class="btn" />
					</div>
                </div>
			
            	<table width="100%">
                	<thead>
                    	<tr>
                        	<th>编号</th>
                            <th>商品名称</th>
                            <th>规格</th>
							<th>库存</th>
							<th>警戒</th>
							<th>状态</th>
							<th>供应商</th>
							<th>货号</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <?php if( ! empty($goods)): ?>
                    <?php $n=0;?>
                    <tbody>
                        <?php foreach($goods as $g): ?>
                        <?php if($n%2 == 0):?>
                        <tr class="alt">
                        <?php else: ?>
                    	<tr>
                        <?php endif; ?>
                        	<td><?php echo $g->GoodsNO;?></td>
                            <td><?php echo $g->GoodsName;?></td>
                            <?php if($g->bMultiSpec == 0):?>
							<td></td>
                            <?php else: ?>
                            <td><a href="<?php echo $g->StockUrl;?>" title="点击查看库存" class="notifypop"><img src="img/icons/hammer_screwdriver.png" alt="Edit" /></a></td>
                            <?php endif; ?>
                            
							<td><?php echo $g->RealStock;?></td>
							<td><?php echo $g->RealWarStock;?></td>
							<td><?php echo $g->FlagName;?></td>
							<td><?php echo $g->ProviderName;?></td>
							<td><?php echo $g->ProviderGoodsNO;?></td>
                            <td>
                            	<a href="<?php echo $g->StockUrl;?>" title="点击修改库存" class="editstock"><img src="img/icons/icon_edit.png" alt="Edit" /></a>
                            </td>
                        </tr>
                        <?php $n++;?>
						<?php endforeach;?>
                    </tbody>
                    <?php endif;?>
                </table>
                <?php echo $pager;?>
                <!--
                <ul class="pagination">
                	<li><a>首页</a></li>
                	<li><a>上一页</a></li>
                    <li class="page"><a href="#" title="">1</a></li>
                    <li><a href="#" title="">2</a></li>
                    <li><a href="#" title="">3</a></li>
                    <li><a href="#" title="">4</a></li>
                    <li class=""><a href="#" title="">下一页</a></li>
                </ul>
                -->
                <div style="clear: both;"></div>
            </div>
            </form>
            
        </div>
        <!-- Alternative Content Box End -->
        